package com.softtown.modules.sys.service.impl;

import com.softtown.common.service.impl.BaseServiceImpl;
import com.softtown.common.utils.ConvertUtils;
import com.softtown.modules.sys.dao.SysDocAttDao;
import com.softtown.modules.sys.entity.SysDocAttEntity;
import com.softtown.modules.sys.service.SysDocAttService;
import com.softtown.modules.sys.vo.SysDocAttVO;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 系统单据附件Service实现方法层
 *
 * @author fuming
 * @version v1.0
 * @create 2019-12-03 19:29
 **/
@Service
public class SysDocAttServiceImpl extends BaseServiceImpl<SysDocAttDao, SysDocAttEntity> implements SysDocAttService {

    /**
     * 查询反馈单附件
     *
     * @param docId 单据id
     * @return java.util.List<com.softtown.modules.sys.vo.SysDocAttVO>
     * @Author fuming
     * @Date 2019/12/5 10:43
     */
    @Override
    public List<SysDocAttVO> selectFbSysDocAttList(Long docId) {
        return ConvertUtils.sourceToTarget(baseDao.selectFbSysDocAttList(docId), SysDocAttVO.class);
    }
}